package com.example.util.model;

import java.util.Date;


//@Table(table = "S_PRIVILEGE_USER" , desc = "")
public class PrivilegeUser {
//	@Key( column ="ID", type =3,  generator = "sequence.hibernate_sequence", notnull = true, length =22,  comment =""  )
	private Long id;
//	@Column( column ="EMAIL", type =12,  length =255,  comment =""  )
	private String email;
//	@Column( column ="OA_ACCOUNT", type =12,  length =255,  comment =""  )
	private String oaAccount;
//	@Column( column ="LOGIN_PASSWORD", type =12,  length =50,  comment =""  )
	private String loginPassword;
//	@Column( column ="LOCK_FLAG", type =3,  length =22,  comment =""  )
	private Long lockFlag;
//	@Column( column ="LOGIN_IP", type =12,  length =255,  comment =""  )
	private String loginIp;
//	@Column( column ="DEPARMENT_ID", type =3,  length =22,  comment =""  )
	private Long deparmentId;
//	@Column( column ="ACTIVE_FLAG", type =3,  length =22,  comment =""  )
	private Long activeFlag;
//	@Column( column ="PASSWORD_MODIFY_TIME", type =93,  length =7,  comment =""  )
	private Date passwordModifyTime;
//	@Column( column ="RELATION_ID", type =3,  length =22,  comment =""  )
	private Long relationId;
//	@Column( column ="ORDER_ID", type =3,  length =22,  comment =""  )
	private Long orderId;
//	@Column( column ="LOGIN_NAME", type =12,  length =30,  comment =""  )
	private String loginName;
//	@Column( column ="CONSTRUCT_UNIT_ID", type =3,  length =22,  comment =""  )
	private Long constructUnitId;
//	@Column( column ="PHONE", type =12,  length =255,  comment =""  )
	private String phone;
//	@Column( column ="PARTY_ADDRESS", type =12,  length =500,  comment =""  )
	private String partyAddress;
//	@Column( column ="PARTY_DESC", type =12,  length =512,  comment =""  )
	private String partyDesc;
//	@Column( column ="PARTY_NAME", type =12,  length =255,  comment =""  )
	private String partyName;
//	@Column( column ="PARTY_CODE", type =12,  length =50,  comment =""  )
	private String partyCode;
//	@Column( column ="OFFICES_ID", type =3,  length =22,  comment =""  )
	private Long officesId;
//	@Column( column ="RELATION_NAME", type =12,  length =30,  comment =""  )
	private String relationName;
//	@Column( column ="REMARK", type =12,  length =1000,  comment =""  )
	private String remark;
//	@Column( column ="DELETE_FLAG", type =3,  length =22,  comment =""  )
	private Long deleteFlag;
//	@Column( column ="QUOTA_ORGAN", type =3,  length =22,  comment =""  )
	private Long quotaOrgan;
//	@Column( column ="U_ID", type =12,  length =60,  comment =""  )
	private String uId;
//	@Column( column ="IS_PRIVATE_ACCOUNT", type =3,  length =22,  comment ="是否供应链专有账号：1-是，0-否"  )
	private Long isPrivateAccount;
//	@Column( column ="OA_DEPT", type =12,  length =512,  comment ="OA该人员默认部门"  )
	private String oaDept;
//	@Column( column ="LOGIN_ERROR_COUNT", type =3,  length =22,  comment ="登录失败次数"  )
	private Long loginErrorCount;
//	@Column( column ="LOGIN_ERROR_TIME", type =93,  length =7,  comment ="第一次登录失败时间"  )
	private Date loginErrorTime;
//	@Column( column ="ACCOUNT_LOCK_TIME", type =93,  length =7,  comment ="账号锁定时间"  )
	private Date accountLockTime;
//	@Column( column ="LOGIN_HIS_PASS", type =12,  length =2000,  comment ="历史密码"  )
	private String loginHisPass;
//	@Column( column ="IS_CREAT_USER", type =3,  length =22,  comment ="是否新增用户，1--是"  )
	private Long isCreatUser;
//	@Column( column ="SMAP_ACCOUNT", type =12,  length =100,  comment ="SMAP账户"  )
	private String smapAccount;
//	@Column( column ="IS_BINDMACORIP", type =3,  length =22,  comment ="是否绑定MAC或IP登录"  )
	private Long isBindmacorip;
//	@Column( column ="MAC_ADDRESS", type =12,  length =255,  comment ="用户绑定的mac地址，多个mac地址用英文逗号分开，最多4个"  )
	private String macAddress;
//	@Column( column ="IP_ADDRESS", type =12,  length =4000,  comment ="用户绑定ip地址，一个mac地址对应可以对应多个ip地址，以json格式存入"  )
	private String ipAddress;
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id=id;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email=email;
	}

	public String getOaAccount() {
		return this.oaAccount;
	}

	public void setOaAccount(String oaAccount) {
		this.oaAccount=oaAccount;
	}

	public String getLoginPassword() {
		return this.loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword=loginPassword;
	}

	public Long getLockFlag() {
		return this.lockFlag;
	}

	public void setLockFlag(Long lockFlag) {
		this.lockFlag=lockFlag;
	}

	public String getLoginIp() {
		return this.loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp=loginIp;
	}

	public Long getDeparmentId() {
		return this.deparmentId;
	}

	public void setDeparmentId(Long deparmentId) {
		this.deparmentId=deparmentId;
	}

	public Long getActiveFlag() {
		return this.activeFlag;
	}

	public void setActiveFlag(Long activeFlag) {
		this.activeFlag=activeFlag;
	}

	public Date getPasswordModifyTime() {
		return this.passwordModifyTime;
	}

	public void setPasswordModifyTime(Date passwordModifyTime) {
		this.passwordModifyTime=passwordModifyTime;
	}

	public Long getRelationId() {
		return this.relationId;
	}

	public void setRelationId(Long relationId) {
		this.relationId=relationId;
	}

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId=orderId;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName=loginName;
	}

	public Long getConstructUnitId() {
		return this.constructUnitId;
	}

	public void setConstructUnitId(Long constructUnitId) {
		this.constructUnitId=constructUnitId;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone=phone;
	}

	public String getPartyAddress() {
		return this.partyAddress;
	}

	public void setPartyAddress(String partyAddress) {
		this.partyAddress=partyAddress;
	}

	public String getPartyDesc() {
		return this.partyDesc;
	}

	public void setPartyDesc(String partyDesc) {
		this.partyDesc=partyDesc;
	}

	public String getPartyName() {
		return this.partyName;
	}

	public void setPartyName(String partyName) {
		this.partyName=partyName;
	}

	public String getPartyCode() {
		return this.partyCode;
	}

	public void setPartyCode(String partyCode) {
		this.partyCode=partyCode;
	}

	public Long getOfficesId() {
		return this.officesId;
	}

	public void setOfficesId(Long officesId) {
		this.officesId=officesId;
	}

	public String getRelationName() {
		return this.relationName;
	}

	public void setRelationName(String relationName) {
		this.relationName=relationName;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark=remark;
	}

	public Long getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(Long deleteFlag) {
		this.deleteFlag=deleteFlag;
	}

	public Long getQuotaOrgan() {
		return this.quotaOrgan;
	}

	public void setQuotaOrgan(Long quotaOrgan) {
		this.quotaOrgan=quotaOrgan;
	}

	public String getUId() {
		return this.uId;
	}

	public void setUId(String uId) {
		this.uId=uId;
	}

	public Long getIsPrivateAccount() {
		return this.isPrivateAccount;
	}

	public void setIsPrivateAccount(Long isPrivateAccount) {
		this.isPrivateAccount=isPrivateAccount;
	}

	public String getOaDept() {
		return this.oaDept;
	}

	public void setOaDept(String oaDept) {
		this.oaDept=oaDept;
	}

	public Long getLoginErrorCount() {
		return this.loginErrorCount;
	}

	public void setLoginErrorCount(Long loginErrorCount) {
		this.loginErrorCount=loginErrorCount;
	}

	public Date getLoginErrorTime() {
		return this.loginErrorTime;
	}

	public void setLoginErrorTime(Date loginErrorTime) {
		this.loginErrorTime=loginErrorTime;
	}

	public Date getAccountLockTime() {
		return this.accountLockTime;
	}

	public void setAccountLockTime(Date accountLockTime) {
		this.accountLockTime=accountLockTime;
	}

	public String getLoginHisPass() {
		return this.loginHisPass;
	}

	public void setLoginHisPass(String loginHisPass) {
		this.loginHisPass=loginHisPass;
	}

	public Long getIsCreatUser() {
		return this.isCreatUser;
	}

	public void setIsCreatUser(Long isCreatUser) {
		this.isCreatUser=isCreatUser;
	}

	public String getSmapAccount() {
		return this.smapAccount;
	}

	public void setSmapAccount(String smapAccount) {
		this.smapAccount=smapAccount;
	}

	public Long getIsBindmacorip() {
		return this.isBindmacorip;
	}

	public void setIsBindmacorip(Long isBindmacorip) {
		this.isBindmacorip=isBindmacorip;
	}

	public String getMacAddress() {
		return this.macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress=macAddress;
	}

	public String getIpAddress() {
		return this.ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress=ipAddress;
	}
/*
	public String getColumn(String fieldName) {
	if(fieldName.equals("id")){
	return "ID";
	}
	else if(fieldName.equals("email")){
	return "EMAIL";
	}
	else if(fieldName.equals("oaAccount")){
	return "OA_ACCOUNT";
	}
	else if(fieldName.equals("loginPassword")){
	return "LOGIN_PASSWORD";
	}
	else if(fieldName.equals("lockFlag")){
	return "LOCK_FLAG";
	}
	else if(fieldName.equals("loginIp")){
	return "LOGIN_IP";
	}
	else if(fieldName.equals("deparmentId")){
	return "DEPARMENT_ID";
	}
	else if(fieldName.equals("activeFlag")){
	return "ACTIVE_FLAG";
	}
	else if(fieldName.equals("passwordModifyTime")){
	return "PASSWORD_MODIFY_TIME";
	}
	else if(fieldName.equals("relationId")){
	return "RELATION_ID";
	}
	else if(fieldName.equals("orderId")){
	return "ORDER_ID";
	}
	else if(fieldName.equals("loginName")){
	return "LOGIN_NAME";
	}
	else if(fieldName.equals("constructUnitId")){
	return "CONSTRUCT_UNIT_ID";
	}
	else if(fieldName.equals("phone")){
	return "PHONE";
	}
	else if(fieldName.equals("partyAddress")){
	return "PARTY_ADDRESS";
	}
	else if(fieldName.equals("partyDesc")){
	return "PARTY_DESC";
	}
	else if(fieldName.equals("partyName")){
	return "PARTY_NAME";
	}
	else if(fieldName.equals("partyCode")){
	return "PARTY_CODE";
	}
	else if(fieldName.equals("officesId")){
	return "OFFICES_ID";
	}
	else if(fieldName.equals("relationName")){
	return "RELATION_NAME";
	}
	else if(fieldName.equals("remark")){
	return "REMARK";
	}
	else if(fieldName.equals("deleteFlag")){
	return "DELETE_FLAG";
	}
	else if(fieldName.equals("quotaOrgan")){
	return "QUOTA_ORGAN";
	}
	else if(fieldName.equals("uId")){
	return "U_ID";
	}
	else if(fieldName.equals("isPrivateAccount")){
	return "IS_PRIVATE_ACCOUNT";
	}
	else if(fieldName.equals("oaDept")){
	return "OA_DEPT";
	}
	else if(fieldName.equals("loginErrorCount")){
	return "LOGIN_ERROR_COUNT";
	}
	else if(fieldName.equals("loginErrorTime")){
	return "LOGIN_ERROR_TIME";
	}
	else if(fieldName.equals("accountLockTime")){
	return "ACCOUNT_LOCK_TIME";
	}
	else if(fieldName.equals("loginHisPass")){
	return "LOGIN_HIS_PASS";
	}
	else if(fieldName.equals("isCreatUser")){
	return "IS_CREAT_USER";
	}
	else if(fieldName.equals("smapAccount")){
	return "SMAP_ACCOUNT";
	}
	else if(fieldName.equals("isBindmacorip")){
	return "IS_BINDMACORIP";
	}
	else if(fieldName.equals("macAddress")){
	return "MAC_ADDRESS";
	}
	else if(fieldName.equals("ipAddress")){
	return "IP_ADDRESS";
	}
	return null;
	}
	public String getPKFieldName() {
	return "id";
	}
	public String getTableName() {
	return "S_PRIVILEGE_USER";
	}*/

	@Override
	public String toString() {
		return "PrivilegeUser{" +
				"id=" + id +
				", email='" + email + '\'' +
				", oaAccount='" + oaAccount + '\'' +
				", loginPassword='" + loginPassword + '\'' +
				", lockFlag=" + lockFlag +
				", loginIp='" + loginIp + '\'' +
				", deparmentId=" + deparmentId +
				", activeFlag=" + activeFlag +
				", passwordModifyTime=" + passwordModifyTime +
				", relationId=" + relationId +
				", orderId=" + orderId +
				", loginName='" + loginName + '\'' +
				", constructUnitId=" + constructUnitId +
				", phone='" + phone + '\'' +
				", partyAddress='" + partyAddress + '\'' +
				", partyDesc='" + partyDesc + '\'' +
				", partyName='" + partyName + '\'' +
				", partyCode='" + partyCode + '\'' +
				", officesId=" + officesId +
				", relationName='" + relationName + '\'' +
				", remark='" + remark + '\'' +
				", deleteFlag=" + deleteFlag +
				", quotaOrgan=" + quotaOrgan +
				", uId='" + uId + '\'' +
				", isPrivateAccount=" + isPrivateAccount +
				", oaDept='" + oaDept + '\'' +
				", loginErrorCount=" + loginErrorCount +
				", loginErrorTime=" + loginErrorTime +
				", accountLockTime=" + accountLockTime +
				", loginHisPass='" + loginHisPass + '\'' +
				", isCreatUser=" + isCreatUser +
				", smapAccount='" + smapAccount + '\'' +
				", isBindmacorip=" + isBindmacorip +
				", macAddress='" + macAddress + '\'' +
				", ipAddress='" + ipAddress + '\'' +
				'}';
	}
}